﻿using SkyNote.Events;
using SkyNote.Events.Bus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SkyNote.Domain.Events.Handlers
{
    public class ReservationCheckedEventHandler : IDomainEventHandler<ReservationCheckedEvent>, IEventHandler<ReservationCheckedEvent>
    {
        private readonly IEventBus bus;
        public ReservationCheckedEventHandler(IEventBus bus)
        {
            this.bus = bus;
        }
        public void Handle(ReservationCheckedEvent evnt)
        {
            this.bus.Publish<ReservationCheckedEvent>(evnt);
        }
    }
}
